﻿Imports DAO
Imports DTO

Public Class AcQuyBUS
    Private aqDAO As AcquyDAO

    Public Sub New()
        aqDAO = New AcquyDAO()
    End Sub

    Public Function InsertAcQuy(ByVal aq As AcquyDTO, ByVal flagIsUp As Integer)
        Return aqDAO.InsertAcQuy(aq, flagIsUp)
    End Function

    Public Function LoadComboListbox()
        Return aqDAO.LoadComboListbox()
    End Function

    Public Function GetData()
        Return aqDAO.GetData()
    End Function

    Public Function TimKiem(ByVal laq As AcquyDTO)
        Return aqDAO.TimKiem(laq)
    End Function

    Public Function DeleteProduct(ByVal id As Integer)
        Return aqDAO.DeleteAcQuy(id)
    End Function

    Public Function SelectById(ByVal id As Integer)
        Return aqDAO.SelectByID(id)
    End Function

    Public Function SelectNameLoai(ByVal id As Integer)
        Return aqDAO.SelectNameLoai(id)
    End Function
End Class
